using Godot;
using System;

public partial class UiStart : Ui
{
	private Button _startButton;
	private Button _endButton;
	// Called when the node enters the scene tree for the first time.
	public override void _Ready()
	{
		_startButton = GetNode<Button>("%StartButton");
		_endButton = GetNode<Button>("%EndButton");
		_startButton.Pressed += OnStartButtonPressed;
		_endButton.Pressed += OnEndButtonPressed;
	}

	// Called every frame. 'delta' is the elapsed time since the previous frame.
	public override void _Process(double delta)
	{
	}
	public void OnStartButtonPressed()
	{
		this.close_self();
	}
	public void OnEndButtonPressed()
	{
		GetTree().Quit();
	}
}
